import request from '@/utils/request'

export function fetchOrder(data) {
  return request({
    url: '/repair-order/get-page',
    method: 'get',
    params: data
  })
}
export function fetchOrderByEmployeeId(data) {
  return request({
    url: '/order/get-page',
    method: 'get',
    params: data
  })
}

export function updateOrder(data) {
  return request({
    url: '/repair-order/updateOrderProcess/toStaff',
    method: 'post',
    headers: { 'content-type': 'application/x-www-form-urlencoded' },
    params: data
  })
}

export function createOrder(data) {
  return request({
    url: '/dormitory/insert-one',
    method: 'post',
    data
  })
}

export function fetchEmployeee(data) {
  return request({
    url: '/staff/get-All',
    method: 'get'
  })
}
